package com.fwx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @program: springsecurity04
 * @description:
 * @author: 范文轩
 * @create: 2024-07-29 15:31
 **/

@Controller
public class PageController {
    
    @PostMapping("/success")
    public String success(){
        return "success";
        // return "redirect:/success.html";
    }
    
    @PostMapping("/fail")
    public String fail(){
        return "redirect:/fail.html";
    }
}
